package com.example.androidtest1;

import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class LifeCycle extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_cycle);
        Log.i("LifeCycle",">>>onCreate() Called<<<");
    }
    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i("LifeCycle",">>>onRestart() Called<<<");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i("LifeCycle",">>>onResume() Called<<<");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i("LifeCycle",">>>onPause() Called<<<");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i("LifeCycle",">>>onStop() Called<<<");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i("LifeCycle",">>>onDestroy() Called<<<");
    }
}
